package com.yunhe.abnormal.domain.base;

import com.yunhe.common.model.data.AbnormalRuleFormulaObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;

import java.util.List;

@ApiModel(value = "AbnormalRule", description = "异常规则")
@NodeEntity
public class AbnormalRule {
    @ApiModelProperty(value = "异常规则ID")
    @Id
    @GeneratedValue
    private Long id;
    @ApiModelProperty(value = "异常规则编号")
    @Property(name = "name")
    private String name;
    @ApiModelProperty(value = "异常规则标题")
    @Property(name = "title")
    private String title;
    @ApiModelProperty(value = "异常规则序号")
    @Property(name = "sn")
    private Long sn;
    @ApiModelProperty(value = "异常规则关联对象ID")
    @Property(name = "objectId")
    private Long objectId;
    @ApiModelProperty(value = "异常规则关联对象标题")
    @Property(name = "objectTitle")
    private String objectTitle;

    private List<AbnormalRuleFormulaObject> abnormalRuleFormulaObjects;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public List<AbnormalRuleFormulaObject> getAbnormalRuleFormulaObjects() {
        return abnormalRuleFormulaObjects;
    }

    public void setAbnormalRuleFormulaObjects(List<AbnormalRuleFormulaObject> abnormalRuleFormulaObjects) {
        this.abnormalRuleFormulaObjects = abnormalRuleFormulaObjects;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    public String getObjectTitle() {
        return objectTitle;
    }

    public void setObjectTitle(String objectTitle) {
        this.objectTitle = objectTitle;
    }
}
